# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libassuan
pkgver=2.5.5
pkgrel=0
pkgdesc="IPC library used by some GnuPG related software"
url="https://www.gnupg.org/software/libassuan/index.html"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libgpg-error-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="70117f77aa43bbbe0ed28da5ef23834c026780a74076a92ec775e30f851badb423e9a2cb9e8d142c94e4f6f8a794988c1b788fd4bd2271e562071adf0ab16403  libassuan-2.5.5.tar.bz2"
